.class public abstract Lcom/estrongs/fs/impl/media/d;
.super Lcom/estrongs/fs/impl/media/a;
.source "MediaStoreFileSystem.java"

# interfaces
.implements Lcom/estrongs/fs/j;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "NewApi"
    }
.end annotation


# static fields
.field private static final a:Landroid/graphics/BitmapFactory$Options;

.field private static b:Ljava/text/SimpleDateFormat;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    new-instance v0, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/media/d;->a:Landroid/graphics/BitmapFactory$Options;

    .line 2
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyy:MM:dd HH:mm:ss"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcom/estrongs/fs/impl/media/d;->b:Ljava/text/SimpleDateFormat;

    const-string v1, "UTC"

    .line 3
    invoke-static {v1}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->setTimeZone(Ljava/util/TimeZone;)V

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/fs/impl/media/a;-><init>()V

    return-void
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)I
    .locals 3

    .line 246
    :try_start_0
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    const-string v1, "_data"

    .line 247
    invoke-virtual {v0, v1, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 248
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "_data="

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 249
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object p1

    const-string v1, "external"

    .line 250
    invoke-static {v1}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {p1, v1, v0, p0, v2}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :catch_0
    move-exception p0

    .line 251
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 p0, 0x0

    return p0
.end method

.method private static a(Landroid/media/ExifInterface;)J
    .locals 4

    const-string v0, "DateTime"

    .line 265
    invoke-virtual {p0, v0}, Landroid/media/ExifInterface;->getAttribute(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const-wide/16 v0, -0x1

    if-nez p0, :cond_0

    return-wide v0

    .line 266
    :cond_0
    new-instance v2, Ljava/text/ParsePosition;

    const/4 v3, 0x0

    invoke-direct {v2, v3}, Ljava/text/ParsePosition;-><init>(I)V

    .line 267
    :try_start_0
    sget-object v3, Lcom/estrongs/fs/impl/media/d;->b:Ljava/text/SimpleDateFormat;

    invoke-virtual {v3, p0, v2}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;

    move-result-object p0

    if-nez p0, :cond_1

    return-wide v0

    .line 268
    :cond_1
    invoke-virtual {p0}, Ljava/util/Date;->getTime()J

    move-result-wide v0
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-wide v0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/fs/h;Ljava/lang/String;)Ljava/util/List;
    .locals 37
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    const-string v2, "#"

    .line 1
    invoke-static/range {p3 .. p3}, Les/eu;->a(Ljava/lang/String;)Ljava/util/Map;

    move-result-object v3

    const-string v4, "keyword"

    .line 2
    invoke-interface {v3, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 3
    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    invoke-static {v5}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Les/eu;->c(Ljava/lang/String;)Ljava/util/List;

    move-result-object v5

    goto :goto_0

    :cond_0
    const/4 v5, 0x0

    .line 4
    :goto_0
    new-instance v7, Les/eu$a;

    const/4 v8, 0x0

    invoke-direct {v7, v8}, Les/eu$a;-><init>(Z)V

    .line 5
    invoke-interface {v3, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v9

    const/4 v10, 0x1

    if-eqz v9, :cond_1

    .line 6
    new-instance v9, Les/eu$e;

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v9, v4, v10}, Les/eu$e;-><init>(Ljava/lang/String;Z)V

    .line 7
    invoke-virtual {v7, v9}, Les/eu$a;->a(Lcom/estrongs/fs/h;)V

    goto :goto_1

    :cond_1
    const/4 v9, 0x0

    .line 8
    :goto_1
    invoke-static {}, Lcom/estrongs/android/util/h0;->p()Lcom/estrongs/fs/h;

    move-result-object v4

    invoke-virtual {v7, v4}, Les/eu$a;->a(Lcom/estrongs/fs/h;)V

    .line 9
    invoke-static {}, Lcom/estrongs/android/pop/utils/n;->d()[Lcom/estrongs/android/pop/utils/n$g;

    move-result-object v4

    .line 10
    invoke-static {v4}, Lcom/estrongs/android/pop/utils/n;->a([Lcom/estrongs/android/pop/utils/n$g;)[Ljava/lang/String;

    move-result-object v11

    .line 11
    array-length v12, v4

    const/16 v13, 0x1f4

    if-le v12, v13, :cond_2

    .line 12
    new-instance v12, Lcom/estrongs/fs/impl/media/d$a;

    invoke-direct {v12, v4, v11}, Lcom/estrongs/fs/impl/media/d$a;-><init>([Lcom/estrongs/android/pop/utils/n$g;[Ljava/lang/String;)V

    invoke-virtual {v7, v12}, Les/eu$a;->a(Lcom/estrongs/fs/h;)V

    :cond_2
    const-string v12, "category"

    .line 13
    invoke-interface {v3, v12}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_3

    .line 14
    invoke-interface {v3, v12}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Ljava/lang/String;

    goto :goto_2

    :cond_3
    const/4 v12, 0x0

    :goto_2
    :try_start_0
    const-string v6, "minSize"

    .line 15
    invoke-interface {v3, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    invoke-static {v6}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v16
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-wide/from16 v14, v16

    goto :goto_3

    :catch_0
    const-wide/16 v14, -0x1

    :goto_3
    :try_start_1
    const-string v6, "maxSize"

    .line 16
    invoke-interface {v3, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    invoke-static {v6}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v18
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-wide/from16 v20, v18

    goto :goto_4

    :catch_1
    const-wide/16 v20, -0x1

    :goto_4
    :try_start_2
    const-string v6, "minDate"

    .line 17
    invoke-interface {v3, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    invoke-static {v6}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v18
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    move-wide/from16 v22, v18

    goto :goto_5

    :catch_2
    const-wide/16 v22, -0x1

    :goto_5
    :try_start_3
    const-string v6, "maxDate"

    .line 18
    invoke-interface {v3, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v18
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    move-wide/from16 v24, v18

    goto :goto_6

    :catch_3
    const-wide/16 v24, -0x1

    :goto_6
    const-string v3, "external"

    .line 19
    invoke-static {v3}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v27

    new-array v3, v10, [Ljava/lang/String;

    const-string v6, "_data"

    aput-object v6, v3, v8

    .line 20
    new-instance v8, Ljava/lang/StringBuffer;

    invoke-direct {v8}, Ljava/lang/StringBuffer;-><init>()V

    const-string v10, "externalstorage://"

    .line 21
    invoke-virtual {v10, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    const-string v13, "%/%"

    move-object/from16 v32, v9

    const-string v9, " or "

    move-object/from16 v33, v7

    const-string v7, " like "

    const-string v0, "/"

    if-eqz v19, :cond_7

    move-object/from16 v19, v2

    const-string v2, "("

    .line 22
    invoke-virtual {v8, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 23
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v2

    .line 24
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const/16 v29, 0x0

    :goto_7
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v30

    if-eqz v30, :cond_6

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v30

    move-object/from16 v31, v2

    move-object/from16 v2, v30

    check-cast v2, Ljava/lang/String;

    if-lez v29, :cond_4

    .line 25
    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 26
    :cond_4
    invoke-virtual {v2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v30

    if-nez v30, :cond_5

    move-object/from16 v30, v3

    .line 27
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_8

    :cond_5
    move-object/from16 v30, v3

    .line 28
    :goto_8
    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v29, v29, 0x1

    move-object/from16 v3, v30

    move-object/from16 v2, v31

    goto :goto_7

    :cond_6
    move-object/from16 v30, v3

    const/16 v2, 0x29

    .line 29
    invoke-virtual {v8, v2}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_9

    :cond_7
    move-object/from16 v19, v2

    move-object/from16 v30, v3

    .line 30
    invoke-virtual {v1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_8

    .line 31
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 32
    :cond_8
    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 33
    :goto_9
    new-instance v2, Ljava/util/LinkedList;

    invoke-direct {v2}, Ljava/util/LinkedList;-><init>()V

    const-string v3, "image"

    .line 34
    invoke-virtual {v3, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    const-string v13, " and ("

    move-wide/from16 v34, v14

    const-string v14, "%"

    const-string v15, " and "

    if-eqz v3, :cond_a

    .line 35
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v3, "media_type=1"

    invoke-virtual {v8, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_9
    :goto_a
    move-object/from16 p1, v2

    move-object/from16 v29, v14

    goto/16 :goto_c

    :cond_a
    const-string v3, "music"

    .line 36
    invoke-virtual {v3, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_b

    .line 37
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v3, "media_type=2"

    invoke-virtual {v8, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_a

    :cond_b
    const-string v3, "video"

    .line 38
    invoke-virtual {v3, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_c

    .line 39
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v3, "media_type=3"

    invoke-virtual {v8, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_a

    :cond_c
    const-string v3, "apk"

    .line 40
    invoke-virtual {v3, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_d

    .line 41
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v3, "%.apk"

    invoke-static {v3}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v8, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_a

    :cond_d
    const-string v3, "document"

    .line 42
    invoke-virtual {v3, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_9

    .line 43
    invoke-static {}, Lcom/estrongs/android/util/n0;->c()Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_e

    return-object v2

    :cond_e
    const-string v12, ";"

    .line 44
    invoke-virtual {v3, v12}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    .line 45
    array-length v12, v3

    if-lez v12, :cond_9

    .line 46
    invoke-virtual {v8, v13}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-object/from16 p1, v2

    const/4 v12, 0x0

    .line 47
    :goto_b
    array-length v2, v3

    if-ge v12, v2, :cond_10

    if-lez v12, :cond_f

    .line 48
    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 49
    :cond_f
    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-object/from16 v29, v14

    aget-object v14, v3, v12

    invoke-virtual {v2, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v12, v12, 0x1

    move-object/from16 v14, v29

    goto :goto_b

    :cond_10
    move-object/from16 v29, v14

    const-string v2, ")"

    .line 50
    invoke-virtual {v8, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 51
    :goto_c
    array-length v2, v4

    const-string v3, " not like "

    if-lez v2, :cond_13

    array-length v2, v4

    const/16 v12, 0x1f4

    if-gt v2, v12, :cond_13

    const/4 v2, 0x0

    .line 52
    :goto_d
    array-length v12, v4

    if-ge v2, v12, :cond_13

    .line 53
    aget-object v12, v4, v2

    iget-boolean v12, v12, Lcom/estrongs/android/pop/utils/n$g;->a:Z

    const-string v14, "!="

    if-eqz v12, :cond_12

    .line 54
    aget-object v12, v11, v2

    .line 55
    invoke-static {v12}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 56
    invoke-virtual {v12, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v26

    if-eqz v26, :cond_11

    .line 57
    invoke-virtual {v12}, Ljava/lang/String;->length()I

    move-result v26

    move-object/from16 v31, v4

    const/16 v18, 0x1

    add-int/lit8 v4, v26, -0x1

    move-object/from16 v36, v0

    const/4 v0, 0x0

    invoke-virtual {v12, v0, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v12

    goto :goto_e

    :cond_11
    move-object/from16 v36, v0

    move-object/from16 v31, v4

    const/16 v18, 0x1

    .line 58
    :goto_e
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v14}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {v12}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 59
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "/%"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_f

    :cond_12
    move-object/from16 v36, v0

    move-object/from16 v31, v4

    const/16 v18, 0x1

    .line 60
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v14}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    aget-object v0, v11, v2

    invoke-static {v0}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :goto_f
    add-int/lit8 v2, v2, 0x1

    move-object/from16 v4, v31

    move-object/from16 v0, v36

    goto :goto_d

    :cond_13
    move-object/from16 v36, v0

    if-eqz v5, :cond_19

    .line 61
    invoke-virtual {v8, v13}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 62
    invoke-virtual {v10, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_16

    .line 63
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v0

    .line 64
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v2, 0x0

    :goto_10
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_18

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    move v11, v2

    const/4 v2, 0x0

    .line 65
    :goto_11
    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v12

    if-ge v2, v12, :cond_15

    if-lez v11, :cond_14

    .line 66
    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 67
    :cond_14
    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v12, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-object/from16 v13, v29

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/lang/String;

    invoke-virtual {v12, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v8, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v11, v11, 0x1

    add-int/lit8 v2, v2, 0x1

    goto :goto_11

    :cond_15
    move v2, v11

    goto :goto_10

    :cond_16
    move-object/from16 v13, v29

    const/4 v0, 0x0

    .line 68
    :goto_12
    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v2

    if-ge v0, v2, :cond_18

    if-lez v0, :cond_17

    .line 69
    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 70
    :cond_17
    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v5, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v0, 0x1

    goto :goto_12

    :cond_18
    const/16 v0, 0x29

    .line 71
    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_19
    const-wide/16 v4, -0x1

    cmp-long v0, v34, v4

    if-lez v0, :cond_1a

    .line 72
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "_size>="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-wide/from16 v4, v34

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_1a
    move-wide/from16 v4, v20

    const-wide/16 v11, -0x1

    cmp-long v0, v4, v11

    if-lez v0, :cond_1b

    .line 73
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "_size<="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_1b
    move-wide/from16 v4, v22

    const-wide/16 v11, -0x1

    cmp-long v0, v4, v11

    if-lez v0, :cond_1c

    .line 74
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "date_modified>="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_1c
    move-wide/from16 v4, v24

    const-wide/16 v11, -0x1

    cmp-long v0, v4, v11

    if-lez v0, :cond_1d

    .line 75
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "date_modified<="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 76
    :cond_1d
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->k1()Z

    move-result v0

    if-nez v0, :cond_1e

    .line 77
    invoke-virtual {v8, v15}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v8, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v0, "%/.%"

    invoke-static {v0}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 78
    :cond_1e
    :try_start_4
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v26

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v29

    const/4 v0, 0x0

    const/16 v31, 0x0

    move-object/from16 v28, v30

    move-object/from16 v30, v0

    invoke-virtual/range {v26 .. v31}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    if-nez v2, :cond_20

    if-eqz v2, :cond_1f

    .line 79
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    :cond_1f
    return-object p1

    .line 80
    :cond_20
    :try_start_5
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v0

    .line 81
    invoke-virtual {v10, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_21

    .line 82
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v3, v19

    move-object/from16 v4, v36

    invoke-virtual {v10, v4, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v5

    move-object/from16 v6, p0

    invoke-virtual {v6, v5}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v5

    const/4 v7, 0x0

    invoke-virtual {v6, v7, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_13

    :cond_21
    move-object/from16 v6, p0

    .line 83
    invoke-static/range {p0 .. p0}, Lcom/estrongs/android/util/h0;->g0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    move-object v4, v1

    move-object v1, v6

    .line 84
    :goto_13
    invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-eqz v3, :cond_26

    if-eqz v0, :cond_23

    .line 85
    invoke-virtual {v0}, Les/s80;->z()Z

    move-result v3
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-eqz v3, :cond_23

    if-eqz v2, :cond_22

    .line 86
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    :cond_22
    const/4 v3, 0x0

    return-object v3

    :cond_23
    const/4 v3, 0x0

    const/4 v5, 0x0

    .line 87
    :try_start_6
    invoke-interface {v2, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 88
    new-instance v7, Lcom/estrongs/fs/impl/local/d;

    new-instance v8, Ljava/io/File;

    invoke-direct {v8, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v7, v8}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    move-object/from16 v6, v33

    .line 89
    invoke-virtual {v6, v7}, Les/eu$a;->a(Lcom/estrongs/fs/g;)Z

    move-result v8

    if-nez v8, :cond_24

    move-object/from16 v7, p1

    goto :goto_14

    .line 90
    :cond_24
    new-instance v8, Les/i40;

    invoke-direct {v8, v1, v4, v7}, Les/i40;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/fs/g;)V

    if-eqz v32, :cond_25

    .line 91
    invoke-virtual/range {v32 .. v32}, Les/eu$e;->a()I

    move-result v7

    iput v7, v8, Les/i40;->q:I

    :cond_25
    move-object/from16 v7, p1

    .line 92
    invoke-virtual {v7, v8}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    :goto_14
    move-object/from16 v33, v6

    move-object/from16 p1, v7

    goto :goto_13

    :cond_26
    move-object/from16 v7, p1

    .line 93
    new-instance v0, Lcom/estrongs/fs/impl/media/d$b;

    invoke-direct {v0}, Lcom/estrongs/fs/impl/media/d$b;-><init>()V

    invoke-static {v7, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    if-eqz v2, :cond_27

    .line 94
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    :cond_27
    return-object v7

    :catchall_0
    move-exception v0

    move-object v6, v2

    goto :goto_15

    :catchall_1
    move-exception v0

    const/4 v3, 0x0

    move-object v6, v3

    :goto_15
    if-eqz v6, :cond_28

    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    .line 95
    :cond_28
    goto :goto_17

    :goto_16
    throw v0

    :goto_17
    goto :goto_16
.end method

.method public static a(Ljava/util/List;)V
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 252
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 253
    :cond_0
    :try_start_0
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v0

    const/16 v1, 0x1f4

    rem-int/2addr v0, v1

    if-nez v0, :cond_1

    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v0

    div-int/2addr v0, v1

    goto :goto_0

    :cond_1
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v0

    div-int/2addr v0, v1

    add-int/lit8 v0, v0, 0x1

    :goto_0
    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_1
    if-ge v3, v0, :cond_5

    .line 254
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    add-int/lit8 v5, v0, -0x1

    if-ge v3, v5, :cond_2

    const/16 v6, 0x1f4

    goto :goto_2

    .line 255
    :cond_2
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v6

    mul-int/lit16 v5, v5, 0x1f4

    sub-int/2addr v6, v5

    :goto_2
    const/4 v5, 0x0

    :goto_3
    if-ge v5, v6, :cond_4

    mul-int/lit16 v7, v3, 0x1f4

    add-int/2addr v7, v5

    .line 256
    invoke-interface {p0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    invoke-static {v7}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    if-nez v5, :cond_3

    .line 257
    invoke-static {v7}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_4

    :cond_3
    const-string v8, ","

    .line 258
    invoke-virtual {v4, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {v7}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :goto_4
    add-int/lit8 v5, v5, 0x1

    goto :goto_3

    .line 259
    :cond_4
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    invoke-virtual {v5}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v5

    const-string v6, "external"

    .line 260
    invoke-static {v6}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "_data IN ("

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 261
    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ")"

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v7, 0x0

    .line 262
    invoke-virtual {v5, v6, v4, v7}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :catch_0
    move-exception p0

    .line 263
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_5
    return-void
.end method

.method public static a(Ljava/util/List;Ljava/util/Set;)V
    .locals 32
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/Set<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/media/MediaStoreInsertException;
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    const-string v2, "<unknown>"

    const-string v3, "artist"

    .line 96
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    invoke-virtual {v5}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v5

    const/4 v12, 0x0

    const/4 v6, 0x0

    .line 97
    :goto_0
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v7
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1f
    .catchall {:try_start_0 .. :try_end_0} :catchall_6

    if-ge v6, v7, :cond_0

    .line 98
    :try_start_1
    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    invoke-static {v7}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v0, v6, v7}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    add-int/lit8 v6, v6, 0x1

    goto :goto_0

    :catchall_0
    move-exception v0

    const/4 v4, 0x0

    goto/16 :goto_40

    :catch_0
    const/4 v4, 0x0

    goto/16 :goto_3e

    .line 99
    :cond_0
    :try_start_2
    new-instance v13, Ljava/util/HashSet;

    invoke-direct {v13}, Ljava/util/HashSet;-><init>()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1f
    .catchall {:try_start_2 .. :try_end_2} :catchall_6

    const-string v14, ")"

    const-string v15, "_data IN ("

    const-string v11, ","

    const-string v10, "_data"

    const-string v16, "external"

    const/4 v7, 0x1

    if-eqz v1, :cond_c

    const/4 v4, 0x0

    const/4 v6, 0x0

    .line 100
    :goto_1
    :try_start_3
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Ljava/util/List;->size()I

    move-result v8

    if-ge v6, v8, :cond_2

    .line 101
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v8

    invoke-interface {v8, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    invoke-interface {v1, v8}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 102
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :cond_1
    add-int/lit8 v6, v6, 0x1

    goto :goto_1

    :cond_2
    const-string v8, "storage_id"

    if-eqz v4, :cond_4

    .line 103
    :try_start_4
    invoke-static/range {v16 .. v16}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v17

    new-array v6, v7, [Ljava/lang/String;

    aput-object v8, v6, v12

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "_data like "

    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v12, "%"

    invoke-virtual {v9, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v9, ") limit (1"

    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    const/4 v12, 0x0

    const/16 v22, 0x0

    move-object/from16 v23, v6

    move-object v6, v5

    move-object/from16 v7, v17

    move-object/from16 v24, v8

    move-object/from16 v8, v23

    move-object v1, v10

    move-object v10, v12

    move-object v12, v11

    move-object/from16 v11, v22

    :try_start_5
    invoke-virtual/range {v6 .. v11}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-eqz v6, :cond_5

    .line 104
    :try_start_6
    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v7

    if-eqz v7, :cond_3

    const/4 v7, 0x0

    .line 105
    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v8
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_3
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    move v9, v8

    goto :goto_2

    :cond_3
    const/4 v9, -0x1

    .line 106
    :goto_2
    :try_start_7
    invoke-interface {v6}, Landroid/database/Cursor;->close()V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_4
    .catchall {:try_start_7 .. :try_end_7} :catchall_2

    goto :goto_4

    :catch_1
    move-object/from16 v24, v8

    move-object v1, v10

    move-object v12, v11

    :catch_2
    const/4 v6, 0x0

    goto :goto_3

    :cond_4
    move-object/from16 v24, v8

    move-object v1, v10

    move-object v12, v11

    const/4 v6, 0x0

    :catch_3
    :cond_5
    :goto_3
    const/4 v9, -0x1

    :catch_4
    :goto_4
    move-object/from16 v17, v6

    .line 107
    :try_start_8
    new-instance v6, Ljava/lang/StringBuffer;

    invoke-direct {v6}, Ljava/lang/StringBuffer;-><init>()V

    .line 108
    invoke-interface/range {p1 .. p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :cond_6
    :goto_5
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_8

    .line 109
    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    .line 110
    invoke-virtual {v8, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-nez v10, :cond_6

    .line 111
    invoke-virtual {v6}, Ljava/lang/StringBuffer;->length()I

    move-result v10

    if-nez v10, :cond_7

    .line 112
    invoke-static {v8}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_5

    .line 113
    :cond_7
    invoke-virtual {v6, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {v8}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_5
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    goto :goto_5

    :cond_8
    const-string v4, "parent in (select _id from files where _data in ("

    const/4 v11, -0x1

    if-ne v9, v11, :cond_9

    .line 114
    :try_start_9
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "))"

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    :goto_6
    move-object v9, v4

    goto :goto_7

    .line 115
    :cond_9
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ")) or parent=0 and "

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-object/from16 v4, v24

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "="

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_6

    .line 116
    :goto_7
    invoke-static/range {v16 .. v16}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v7

    const/4 v4, 0x1

    new-array v8, v4, [Ljava/lang/String;

    const/4 v6, 0x0

    aput-object v1, v8, v6

    const/4 v10, 0x0

    const/16 v18, 0x0

    move-object v6, v5

    move-object/from16 v11, v18

    invoke-virtual/range {v6 .. v11}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_5
    .catchall {:try_start_9 .. :try_end_9} :catchall_1

    if-eqz v6, :cond_b

    .line 117
    :goto_8
    :try_start_a
    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v7

    if-eqz v7, :cond_a

    const/4 v7, 0x0

    .line 118
    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-interface {v13, v8}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_8

    .line 119
    :cond_a
    invoke-interface {v6}, Landroid/database/Cursor;->close()V
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_6
    .catchall {:try_start_a .. :try_end_a} :catchall_2

    :cond_b
    const/16 v4, 0x1f4

    goto/16 :goto_f

    :catchall_1
    move-exception v0

    move-object/from16 v4, v17

    goto/16 :goto_40

    :catch_5
    move-object/from16 v4, v17

    goto/16 :goto_3e

    :cond_c
    move-object v1, v10

    move-object v12, v11

    const/4 v4, 0x1

    .line 120
    :try_start_b
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v6

    const/16 v11, 0x1f4

    rem-int/2addr v6, v11
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_1f
    .catchall {:try_start_b .. :try_end_b} :catchall_6

    if-nez v6, :cond_d

    :try_start_c
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v6

    div-int/2addr v6, v11
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_0
    .catchall {:try_start_c .. :try_end_c} :catchall_0

    goto :goto_9

    :cond_d
    :try_start_d
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v6

    div-int/2addr v6, v11
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_1f
    .catchall {:try_start_d .. :try_end_d} :catchall_6

    add-int/2addr v6, v4

    :goto_9
    move v10, v6

    const/4 v9, 0x0

    const/16 v17, 0x0

    :goto_a
    if-ge v9, v10, :cond_13

    .line 121
    :try_start_e
    new-instance v6, Ljava/lang/StringBuffer;

    invoke-direct {v6}, Ljava/lang/StringBuffer;-><init>()V

    add-int/lit8 v7, v10, -0x1

    if-ge v9, v7, :cond_e

    const/16 v8, 0x1f4

    goto :goto_b

    .line 122
    :cond_e
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v8

    mul-int/lit16 v7, v7, 0x1f4

    sub-int/2addr v8, v7

    :goto_b
    const/4 v7, 0x0

    :goto_c
    if-ge v7, v8, :cond_10

    mul-int/lit16 v11, v9, 0x1f4

    add-int/2addr v11, v7

    .line 123
    invoke-interface {v0, v11}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    if-nez v7, :cond_f

    .line 124
    invoke-static {v11}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v6, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_d

    .line 125
    :cond_f
    invoke-virtual {v6, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {v11}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v6, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :goto_d
    add-int/lit8 v7, v7, 0x1

    const/16 v11, 0x1f4

    goto :goto_c

    .line 126
    :cond_10
    invoke-static/range {v16 .. v16}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v7

    new-array v8, v4, [Ljava/lang/String;

    const/4 v11, 0x0

    aput-object v1, v8, v11

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v11, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v11, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    const/16 v18, 0x0

    const/16 v19, 0x0

    move-object v6, v5

    move/from16 v20, v9

    move-object v9, v11

    move/from16 v22, v10

    move-object/from16 v10, v18

    const/16 v4, 0x1f4

    move-object/from16 v11, v19

    invoke-virtual/range {v6 .. v11}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_5
    .catchall {:try_start_e .. :try_end_e} :catchall_1

    if-eqz v6, :cond_12

    .line 127
    :goto_e
    :try_start_f
    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v7

    if-eqz v7, :cond_11

    const/4 v7, 0x0

    .line 128
    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-interface {v13, v8}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_e

    .line 129
    :cond_11
    invoke-interface {v6}, Landroid/database/Cursor;->close()V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_6
    .catchall {:try_start_f .. :try_end_f} :catchall_2

    :cond_12
    add-int/lit8 v9, v20, 0x1

    move-object/from16 v17, v6

    move/from16 v10, v22

    const/4 v4, 0x1

    const/16 v11, 0x1f4

    goto/16 :goto_a

    :cond_13
    const/16 v4, 0x1f4

    move-object/from16 v6, v17

    .line 130
    :goto_f
    :try_start_10
    invoke-interface {v13}, Ljava/util/Set;->size()I

    move-result v7
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_1d
    .catchall {:try_start_10 .. :try_end_10} :catchall_5

    if-lez v7, :cond_15

    .line 131
    :try_start_11
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :cond_14
    :goto_10
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_15

    .line 132
    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    invoke-interface {v13, v8}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_14

    .line 133
    invoke-interface {v7}, Ljava/util/Iterator;->remove()V
    :try_end_11
    .catch Ljava/lang/Exception; {:try_start_11 .. :try_end_11} :catch_6
    .catchall {:try_start_11 .. :try_end_11} :catchall_2

    goto :goto_10

    :catchall_2
    move-exception v0

    move-object v4, v6

    goto/16 :goto_40

    :catch_6
    move-object v4, v6

    goto/16 :goto_3e

    .line 134
    :cond_15
    :try_start_12
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v7
    :try_end_12
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_1d
    .catchall {:try_start_12 .. :try_end_12} :catchall_5

    if-nez v7, :cond_17

    if-eqz v6, :cond_16

    .line 135
    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    :cond_16
    return-void

    .line 136
    :cond_17
    :try_start_13
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v7

    rem-int/2addr v7, v4
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_13} :catch_1d
    .catchall {:try_start_13 .. :try_end_13} :catchall_5

    if-nez v7, :cond_18

    :try_start_14
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v7

    div-int/2addr v7, v4
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_6
    .catchall {:try_start_14 .. :try_end_14} :catchall_2

    goto :goto_11

    :cond_18
    :try_start_15
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v7

    div-int/2addr v7, v4
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_15 .. :try_end_15} :catch_1d
    .catchall {:try_start_15 .. :try_end_15} :catchall_5

    const/4 v8, 0x1

    add-int/2addr v7, v8

    :goto_11
    const/4 v8, 0x0

    :goto_12
    const-string v9, "mime_type"

    const-string v10, "title"

    if-ge v8, v7, :cond_1e

    add-int/lit8 v11, v7, -0x1

    if-ge v8, v11, :cond_19

    const/16 v11, 0x1f4

    goto :goto_13

    .line 137
    :cond_19
    :try_start_16
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v13

    mul-int/lit16 v11, v11, 0x1f4

    sub-int v11, v13, v11

    .line 138
    :goto_13
    new-array v13, v11, [Landroid/content/ContentValues;

    const/4 v4, 0x0

    :goto_14
    if-ge v4, v11, :cond_1d

    move/from16 v17, v7

    mul-int/lit16 v7, v8, 0x1f4

    add-int/2addr v7, v4

    .line 139
    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    .line 140
    new-instance v18, Landroid/content/ContentValues;

    invoke-direct/range {v18 .. v18}, Landroid/content/ContentValues;-><init>()V

    aput-object v18, v13, v4

    move/from16 v18, v11

    .line 141
    aget-object v11, v13, v4

    invoke-virtual {v11, v1, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 142
    new-instance v11, Ljava/io/File;

    invoke-direct {v11, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11}, Ljava/io/File;->isDirectory()Z

    move-result v11

    if-eqz v11, :cond_1a

    .line 143
    aget-object v7, v13, v4

    const-string v11, "format"

    const/16 v19, 0x3001

    move-object/from16 v20, v1

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v7, v11, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    move-object/from16 v19, v14

    goto :goto_16

    :cond_1a
    move-object/from16 v20, v1

    .line 144
    invoke-static {v7}, Lcom/estrongs/android/util/n0;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v11, "*/*"

    if-eq v11, v1, :cond_1b

    .line 145
    aget-object v11, v13, v4

    invoke-virtual {v11, v9, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_16
    .catch Ljava/lang/Exception; {:try_start_16 .. :try_end_16} :catch_6
    .catchall {:try_start_16 .. :try_end_16} :catchall_2

    .line 146
    :cond_1b
    :try_start_17
    aget-object v1, v13, v4

    const-string v11, "_size"
    :try_end_17
    .catch Ljava/lang/Exception; {:try_start_17 .. :try_end_17} :catch_7
    .catchall {:try_start_17 .. :try_end_17} :catchall_2

    move-object/from16 v19, v14

    :try_start_18
    new-instance v14, Ljava/io/File;

    invoke-direct {v14, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14}, Ljava/io/File;->length()J

    move-result-wide v22

    invoke-static/range {v22 .. v23}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v14

    invoke-virtual {v1, v11, v14}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_18 .. :try_end_18} :catch_8
    .catchall {:try_start_18 .. :try_end_18} :catchall_2

    goto :goto_15

    :catch_7
    move-object/from16 v19, v14

    .line 147
    :catch_8
    :goto_15
    :try_start_19
    aget-object v1, v13, v4

    invoke-static {v7}, Lcom/estrongs/fs/util/f;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v1, v10, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 148
    aget-object v1, v13, v4

    const-string v11, "_display_name"

    invoke-static {v7}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v1, v11, v14}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 149
    invoke-static {v7}, Lcom/estrongs/fs/impl/media/b;->d(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1c

    .line 150
    aget-object v1, v13, v4

    const-string v7, "is_music"

    const-string v11, "1"

    invoke-virtual {v1, v7, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 151
    aget-object v1, v13, v4

    const-string v7, "duration"

    const-string v11, "0"

    invoke-virtual {v1, v7, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1c
    :goto_16
    add-int/lit8 v4, v4, 0x1

    move/from16 v7, v17

    move/from16 v11, v18

    move-object/from16 v14, v19

    move-object/from16 v1, v20

    goto/16 :goto_14

    :cond_1d
    move-object/from16 v20, v1

    move/from16 v17, v7

    move-object/from16 v19, v14

    .line 152
    invoke-static/range {v16 .. v16}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v5, v1, v13}, Landroid/content/ContentResolver;->bulkInsert(Landroid/net/Uri;[Landroid/content/ContentValues;)I

    add-int/lit8 v8, v8, 0x1

    move/from16 v7, v17

    move-object/from16 v14, v19

    move-object/from16 v1, v20

    const/16 v4, 0x1f4

    goto/16 :goto_12

    :cond_1e
    move-object/from16 v19, v14

    if-eqz v6, :cond_1f

    .line 153
    invoke-interface {v6}, Landroid/database/Cursor;->close()V
    :try_end_19
    .catch Ljava/lang/Exception; {:try_start_19 .. :try_end_19} :catch_6
    .catchall {:try_start_19 .. :try_end_19} :catchall_2

    .line 154
    :cond_1f
    :try_start_1a
    new-instance v1, Landroid/media/MediaMetadataRetriever;

    invoke-direct {v1}, Landroid/media/MediaMetadataRetriever;-><init>()V

    const/4 v7, 0x0

    .line 155
    :goto_17
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v4
    :try_end_1a
    .catch Ljava/lang/Exception; {:try_start_1a .. :try_end_1a} :catch_1d
    .catchall {:try_start_1a .. :try_end_1a} :catchall_5

    const-string v8, "date_modified"

    if-ge v7, v4, :cond_46

    .line 156
    :try_start_1b
    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 157
    invoke-static {v4}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v11

    .line 158
    new-instance v13, Landroid/content/ContentValues;

    invoke-direct {v13}, Landroid/content/ContentValues;-><init>()V

    .line 159
    invoke-static {v4}, Lcom/estrongs/fs/impl/media/b;->d(Ljava/lang/String;)Z

    move-result v14

    .line 160
    invoke-static {v4}, Lcom/estrongs/fs/impl/media/b;->f(Ljava/lang/String;)Z

    move-result v17
    :try_end_1b
    .catch Ljava/lang/Exception; {:try_start_1b .. :try_end_1b} :catch_1d
    .catchall {:try_start_1b .. :try_end_1b} :catchall_5

    move-object/from16 p1, v6

    const-string v6, "width"

    move-object/from16 v18, v15

    const-string v15, "_data="

    move-object/from16 v20, v12

    if-nez v14, :cond_2c

    if-eqz v17, :cond_20

    goto/16 :goto_1e

    .line 161
    :cond_20
    :try_start_1c
    invoke-static {v4}, Lcom/estrongs/fs/impl/media/b;->e(Ljava/lang/String;)Z

    move-result v14

    if-eqz v14, :cond_2b

    .line 162
    new-instance v14, Ljava/io/File;

    invoke-direct {v14, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14}, Ljava/io/File;->lastModified()J

    move-result-wide v22

    .line 163
    sget v14, Landroid/os/Build$VERSION;->SDK_INT:I
    :try_end_1c
    .catch Ljava/lang/Exception; {:try_start_1c .. :try_end_1c} :catch_1e
    .catchall {:try_start_1c .. :try_end_1c} :catchall_4

    const/16 v12, 0xe

    if-lt v14, v12, :cond_21

    .line 164
    :try_start_1d
    sget-object v12, Lcom/estrongs/fs/impl/media/d;->a:Landroid/graphics/BitmapFactory$Options;

    const/4 v14, 0x0

    iput v14, v12, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    .line 165
    sget-object v12, Lcom/estrongs/fs/impl/media/d;->a:Landroid/graphics/BitmapFactory$Options;

    iput v14, v12, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    .line 166
    sget-object v12, Lcom/estrongs/fs/impl/media/d;->a:Landroid/graphics/BitmapFactory$Options;

    invoke-static {v4, v12}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    .line 167
    sget-object v12, Lcom/estrongs/fs/impl/media/d;->a:Landroid/graphics/BitmapFactory$Options;

    iget v12, v12, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    .line 168
    sget-object v14, Lcom/estrongs/fs/impl/media/d;->a:Landroid/graphics/BitmapFactory$Options;

    iget v14, v14, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    .line 169
    invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v13, v6, v12}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    const-string v6, "height"

    .line 170
    invoke-static {v14}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v12

    invoke-virtual {v13, v6, v12}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
    :try_end_1d
    .catchall {:try_start_1d .. :try_end_1d} :catchall_3

    goto :goto_18

    :catchall_3
    nop

    :cond_21
    :goto_18
    const v6, 0x10011

    if-eq v11, v6, :cond_23

    const v6, 0x10014

    if-ne v11, v6, :cond_22

    goto :goto_19

    :cond_22
    const/4 v12, -0x1

    goto/16 :goto_1d

    .line 171
    :cond_23
    :goto_19
    :try_start_1e
    new-instance v6, Landroid/media/ExifInterface;

    invoke-direct {v6, v4}, Landroid/media/ExifInterface;-><init>(Ljava/lang/String;)V
    :try_end_1e
    .catch Ljava/io/IOException; {:try_start_1e .. :try_end_1e} :catch_9
    .catch Ljava/lang/Exception; {:try_start_1e .. :try_end_1e} :catch_1e
    .catchall {:try_start_1e .. :try_end_1e} :catchall_4

    goto :goto_1a

    :catch_9
    const/4 v6, 0x0

    :goto_1a
    if-eqz v6, :cond_22

    const/4 v11, 0x2

    :try_start_1f
    new-array v11, v11, [F

    .line 172
    invoke-virtual {v6, v11}, Landroid/media/ExifInterface;->getLatLong([F)Z

    move-result v12

    if-eqz v12, :cond_24

    const-string v12, "latitude"

    const/4 v14, 0x0

    .line 173
    aget v17, v11, v14

    invoke-static/range {v17 .. v17}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v14

    invoke-virtual {v13, v12, v14}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    const-string v12, "longitude"

    const/4 v14, 0x1

    .line 174
    aget v11, v11, v14

    invoke-static {v11}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v11

    invoke-virtual {v13, v12, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V

    .line 175
    :cond_24
    invoke-static {v6}, Lcom/estrongs/fs/impl/media/d;->b(Landroid/media/ExifInterface;)J

    move-result-wide v11

    const-wide/16 v24, -0x1

    cmp-long v14, v11, v24

    if-eqz v14, :cond_25

    const-string v14, "datetaken"

    .line 176
    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v11

    invoke-virtual {v13, v14, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    goto :goto_1b

    .line 177
    :cond_25
    invoke-static {v6}, Lcom/estrongs/fs/impl/media/d;->a(Landroid/media/ExifInterface;)J

    move-result-wide v11

    cmp-long v14, v11, v24

    if-eqz v14, :cond_26

    sub-long v24, v22, v11

    .line 178
    invoke-static/range {v24 .. v25}, Ljava/lang/Math;->abs(J)J

    move-result-wide v24

    const-wide/32 v27, 0x5265c00

    cmp-long v14, v24, v27

    if-ltz v14, :cond_26

    const-string v14, "datetaken"

    .line 179
    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v11

    invoke-virtual {v13, v14, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    :cond_26
    :goto_1b
    const-string v11, "Orientation"

    const/4 v12, -0x1

    .line 180
    invoke-virtual {v6, v11, v12}, Landroid/media/ExifInterface;->getAttributeInt(Ljava/lang/String;I)I

    move-result v6

    if-eq v6, v12, :cond_2a

    const/4 v11, 0x3

    if-eq v6, v11, :cond_29

    const/4 v11, 0x6

    if-eq v6, v11, :cond_28

    const/16 v11, 0x8

    if-eq v6, v11, :cond_27

    const/4 v6, 0x0

    goto :goto_1c

    :cond_27
    const/16 v6, 0x10e

    goto :goto_1c

    :cond_28
    const/16 v6, 0x5a

    goto :goto_1c

    :cond_29
    const/16 v6, 0xb4

    :goto_1c
    const-string v11, "orientation"

    .line 181
    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v13, v11, v6}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    :cond_2a
    :goto_1d
    const-wide/16 v24, 0x3e8

    .line 182
    div-long v22, v22, v24

    invoke-static/range {v22 .. v23}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    invoke-virtual {v13, v8, v6}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    .line 183
    sget-object v6, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {v4}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v8, 0x0

    invoke-virtual {v5, v6, v13, v4, v8}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    :cond_2b
    move-object v0, v3

    move-object v4, v5

    move/from16 v22, v7

    const/4 v3, 0x0

    move-object v5, v1

    move-object v1, v2

    goto/16 :goto_35

    :cond_2c
    :goto_1e
    const/4 v12, -0x1

    if-eqz v14, :cond_2d

    .line 184
    sget-object v8, Landroid/provider/MediaStore$Audio$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    goto :goto_1f

    .line 185
    :cond_2d
    sget-object v8, Landroid/provider/MediaStore$Video$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;
    :try_end_1f
    .catch Ljava/lang/Exception; {:try_start_1f .. :try_end_1f} :catch_1e
    .catchall {:try_start_1f .. :try_end_1f} :catchall_4

    .line 186
    :goto_1f
    :try_start_20
    invoke-virtual {v1, v4}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V

    const/4 v11, 0x7

    .line 187
    invoke-virtual {v1, v11}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v11

    const/4 v12, 0x1

    .line 188
    invoke-virtual {v1, v12}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v0

    const/16 v12, 0xc

    .line 189
    invoke-virtual {v1, v12}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v12
    :try_end_20
    .catch Ljava/lang/Exception; {:try_start_20 .. :try_end_20} :catch_18
    .catchall {:try_start_20 .. :try_end_20} :catchall_4

    move/from16 v22, v7

    const/4 v7, 0x2

    .line 190
    :try_start_21
    invoke-virtual {v1, v7}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v7
    :try_end_21
    .catch Ljava/lang/Exception; {:try_start_21 .. :try_end_21} :catch_17
    .catchall {:try_start_21 .. :try_end_21} :catchall_4

    move-object/from16 v17, v5

    const/16 v5, 0x9

    .line 191
    :try_start_22
    invoke-virtual {v1, v5}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v5
    :try_end_22
    .catch Ljava/lang/Exception; {:try_start_22 .. :try_end_22} :catch_16
    .catchall {:try_start_22 .. :try_end_22} :catchall_4

    if-nez v11, :cond_2f

    if-nez v0, :cond_2f

    if-eqz v7, :cond_2e

    goto :goto_20

    :cond_2e
    move-object/from16 v27, v1

    move-object/from16 v30, v2

    move-object/from16 v31, v3

    move-object/from16 v29, v5

    move-object/from16 v26, v6

    move-object/from16 v23, v8

    move/from16 v28, v14

    move-object/from16 v24, v15

    goto/16 :goto_27

    :cond_2f
    :goto_20
    move-object/from16 v23, v8

    const-string v8, "ISO-8859-1"

    if-eqz v11, :cond_30

    move-object/from16 v24, v15

    .line 192
    :try_start_23
    invoke-virtual {v11, v8}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v15

    move-object/from16 v26, v6

    .line 193
    array-length v6, v15
    :try_end_23
    .catch Ljava/lang/Exception; {:try_start_23 .. :try_end_23} :catch_a
    .catchall {:try_start_23 .. :try_end_23} :catchall_4

    const/16 v21, 0x0

    add-int/lit8 v6, v6, 0x0

    goto :goto_22

    :catch_a
    move-object v5, v1

    move-object v1, v2

    move-object v0, v3

    :goto_21
    const/4 v2, 0x0

    const/4 v3, 0x0

    goto/16 :goto_33

    :cond_30
    move-object/from16 v26, v6

    move-object/from16 v24, v15

    const/4 v6, 0x0

    const/4 v15, 0x0

    :goto_22
    move-object/from16 v27, v1

    if-eqz v0, :cond_31

    .line 194
    :try_start_24
    invoke-virtual {v0, v8}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v1

    move/from16 v28, v14

    .line 195
    array-length v14, v1

    add-int/2addr v6, v14

    goto :goto_23

    :catch_b
    move-object v1, v2

    move-object v0, v3

    :catch_c
    move-object/from16 v5, v27

    goto :goto_21

    :cond_31
    move/from16 v28, v14

    const/4 v1, 0x0

    :goto_23
    if-eqz v7, :cond_32

    .line 196
    invoke-virtual {v7, v8}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v8

    .line 197
    array-length v14, v8
    :try_end_24
    .catch Ljava/lang/Exception; {:try_start_24 .. :try_end_24} :catch_b
    .catchall {:try_start_24 .. :try_end_24} :catchall_4

    add-int/2addr v6, v14

    goto :goto_24

    :cond_32
    const/4 v8, 0x0

    .line 198
    :goto_24
    :try_start_25
    new-array v14, v6, [B
    :try_end_25
    .catch Ljava/lang/Exception; {:try_start_25 .. :try_end_25} :catch_14
    .catchall {:try_start_25 .. :try_end_25} :catchall_4

    if-eqz v11, :cond_33

    move-object/from16 v29, v5

    .line 199
    :try_start_26
    array-length v5, v15
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_26 .. :try_end_26} :catch_b
    .catchall {:try_start_26 .. :try_end_26} :catchall_4

    move-object/from16 v30, v2

    const/4 v2, 0x0

    :try_start_27
    invoke-static {v15, v2, v14, v2, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 200
    array-length v5, v15

    add-int/2addr v5, v2

    goto :goto_25

    :cond_33
    move-object/from16 v30, v2

    move-object/from16 v29, v5

    const/4 v5, 0x0

    :goto_25
    if-eqz v0, :cond_34

    .line 201
    array-length v2, v1
    :try_end_27
    .catch Ljava/lang/Exception; {:try_start_27 .. :try_end_27} :catch_e
    .catchall {:try_start_27 .. :try_end_27} :catchall_4

    move-object/from16 v31, v3

    const/4 v3, 0x0

    :try_start_28
    invoke-static {v1, v3, v14, v5, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
    :try_end_28
    .catch Ljava/lang/Exception; {:try_start_28 .. :try_end_28} :catch_d
    .catchall {:try_start_28 .. :try_end_28} :catchall_4

    .line 202
    :try_start_29
    array-length v2, v1

    add-int/2addr v5, v2

    goto :goto_26

    :catch_d
    move-object/from16 v5, v27

    move-object/from16 v1, v30

    move-object/from16 v0, v31

    goto/16 :goto_32

    :catch_e
    move-object v0, v3

    :catch_f
    move-object/from16 v5, v27

    move-object/from16 v1, v30

    goto :goto_21

    :cond_34
    move-object/from16 v31, v3

    :goto_26
    if-eqz v7, :cond_35

    .line 203
    array-length v2, v8
    :try_end_29
    .catch Ljava/lang/Exception; {:try_start_29 .. :try_end_29} :catch_10
    .catchall {:try_start_29 .. :try_end_29} :catchall_4

    const/4 v3, 0x0

    :try_start_2a
    invoke-static {v8, v3, v14, v5, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
    :try_end_2a
    .catch Ljava/lang/Exception; {:try_start_2a .. :try_end_2a} :catch_d
    .catchall {:try_start_2a .. :try_end_2a} :catchall_4

    :cond_35
    const/4 v2, 0x1

    .line 204
    :try_start_2b
    invoke-static {v14, v6, v2}, Lcom/estrongs/android/util/f;->b([BIZ)Ljava/lang/String;

    move-result-object v3
    :try_end_2b
    .catch Ljava/lang/Exception; {:try_start_2b .. :try_end_2b} :catch_13
    .catchall {:try_start_2b .. :try_end_2b} :catchall_4

    if-eqz v3, :cond_38

    .line 205
    :try_start_2c
    sget-object v2, Lcom/estrongs/fs/impl/media/c;->g:Ljava/util/Set;

    invoke-interface {v2, v3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_38

    if-eqz v11, :cond_36

    .line 206
    new-instance v11, Ljava/lang/String;

    invoke-direct {v11, v15, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    :cond_36
    if-eqz v0, :cond_37

    .line 207
    new-instance v0, Ljava/lang/String;

    invoke-direct {v0, v1, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    :cond_37
    if-eqz v7, :cond_38

    .line 208
    new-instance v7, Ljava/lang/String;

    invoke-direct {v7, v8, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    :cond_38
    :goto_27
    if-eqz v11, :cond_39

    .line 209
    invoke-virtual {v13, v10, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2c
    .catch Ljava/lang/Exception; {:try_start_2c .. :try_end_2c} :catch_10
    .catchall {:try_start_2c .. :try_end_2c} :catchall_4

    goto :goto_28

    :catch_10
    move-object/from16 v5, v27

    move-object/from16 v1, v30

    move-object/from16 v0, v31

    goto/16 :goto_21

    .line 210
    :cond_39
    :goto_28
    :try_start_2d
    invoke-static {v13, v4, v0}, Lcom/estrongs/fs/impl/media/c;->a(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2d
    .catch Ljava/lang/Exception; {:try_start_2d .. :try_end_2d} :catch_13
    .catchall {:try_start_2d .. :try_end_2d} :catchall_4

    if-eqz v12, :cond_3a

    .line 211
    :try_start_2e
    invoke-virtual {v13, v9, v12}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2e
    .catch Ljava/lang/Exception; {:try_start_2e .. :try_end_2e} :catch_10
    .catchall {:try_start_2e .. :try_end_2e} :catchall_4

    :cond_3a
    if-eqz v7, :cond_3b

    move-object/from16 v0, v31

    .line 212
    :try_start_2f
    invoke-virtual {v13, v0, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2f
    .catch Ljava/lang/Exception; {:try_start_2f .. :try_end_2f} :catch_f
    .catchall {:try_start_2f .. :try_end_2f} :catchall_4

    move-object/from16 v1, v30

    goto :goto_29

    :cond_3b
    move-object/from16 v0, v31

    move-object/from16 v1, v30

    .line 213
    :try_start_30
    invoke-virtual {v13, v0, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_30
    .catch Ljava/lang/Exception; {:try_start_30 .. :try_end_30} :catch_15
    .catchall {:try_start_30 .. :try_end_30} :catchall_4

    :goto_29
    if-eqz v29, :cond_3c

    :try_start_31
    const-string v2, "duration"

    move-object/from16 v3, v29

    .line 214
    invoke-virtual {v13, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_31
    .catch Ljava/lang/Exception; {:try_start_31 .. :try_end_31} :catch_c
    .catchall {:try_start_31 .. :try_end_31} :catchall_4

    :cond_3c
    if-eqz v28, :cond_42

    .line 215
    :try_start_32
    invoke-virtual {v13, v10}, Landroid/content/ContentValues;->containsKey(Ljava/lang/String;)Z

    move-result v2
    :try_end_32
    .catch Ljava/lang/Exception; {:try_start_32 .. :try_end_32} :catch_11
    .catchall {:try_start_32 .. :try_end_32} :catchall_4

    if-nez v2, :cond_3d

    .line 216
    :try_start_33
    invoke-static {v4}, Lcom/estrongs/fs/util/f;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v13, v10, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_33
    .catch Ljava/lang/Exception; {:try_start_33 .. :try_end_33} :catch_c
    .catchall {:try_start_33 .. :try_end_33} :catchall_4

    .line 217
    :cond_3d
    :try_start_34
    sget-object v2, Lcom/estrongs/fs/impl/media/c;->e:[Ljava/lang/String;
    :try_end_34
    .catch Ljava/lang/Exception; {:try_start_34 .. :try_end_34} :catch_11
    .catchall {:try_start_34 .. :try_end_34} :catchall_4

    const/4 v3, 0x0

    :try_start_35
    aget-object v2, v2, v3
    :try_end_35
    .catch Ljava/lang/Exception; {:try_start_35 .. :try_end_35} :catch_12
    .catchall {:try_start_35 .. :try_end_35} :catchall_4

    :try_start_36
    invoke-virtual {v4, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2
    :try_end_36
    .catch Ljava/lang/Exception; {:try_start_36 .. :try_end_36} :catch_11
    .catchall {:try_start_36 .. :try_end_36} :catchall_4

    if-gtz v2, :cond_3f

    :try_start_37
    sget-object v2, Lcom/estrongs/fs/impl/media/c;->e:[Ljava/lang/String;

    const/4 v3, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v4, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2
    :try_end_37
    .catch Ljava/lang/Exception; {:try_start_37 .. :try_end_37} :catch_c
    .catchall {:try_start_37 .. :try_end_37} :catchall_4

    if-lez v2, :cond_3e

    goto :goto_2a

    :cond_3e
    const/4 v7, 0x0

    goto :goto_2b

    :cond_3f
    :goto_2a
    const/4 v7, 0x1

    .line 218
    :goto_2b
    :try_start_38
    sget-object v2, Lcom/estrongs/fs/impl/media/c;->f:[Ljava/lang/String;
    :try_end_38
    .catch Ljava/lang/Exception; {:try_start_38 .. :try_end_38} :catch_11
    .catchall {:try_start_38 .. :try_end_38} :catchall_4

    const/4 v3, 0x0

    :try_start_39
    aget-object v2, v2, v3

    invoke-virtual {v4, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2

    if-gtz v2, :cond_41

    sget-object v2, Lcom/estrongs/fs/impl/media/c;->f:[Ljava/lang/String;

    const/4 v5, 0x1

    aget-object v2, v2, v5

    invoke-virtual {v4, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2

    if-lez v2, :cond_40

    goto :goto_2c

    :cond_40
    const/4 v2, 0x0

    goto :goto_2d

    :cond_41
    :goto_2c
    const/4 v2, 0x1

    :goto_2d
    const-string v5, "is_ringtone"

    .line 219
    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v6

    invoke-virtual {v13, v5, v6}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Boolean;)V

    const-string v5, "is_notification"

    .line 220
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v13, v5, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Boolean;)V

    goto :goto_2e

    :catch_11
    const/4 v3, 0x0

    goto :goto_2f

    :cond_42
    const/4 v3, 0x0

    .line 221
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
    :try_end_39
    .catch Ljava/lang/Exception; {:try_start_39 .. :try_end_39} :catch_12
    .catchall {:try_start_39 .. :try_end_39} :catchall_4

    const/16 v5, 0x10

    if-lt v2, v5, :cond_44

    const/16 v2, 0x12

    move-object/from16 v5, v27

    .line 222
    :try_start_3a
    invoke-virtual {v5, v2}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v2

    const/16 v6, 0x13

    .line 223
    invoke-virtual {v5, v6}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v6

    if-eqz v2, :cond_43

    move-object/from16 v7, v26

    .line 224
    invoke-virtual {v13, v7, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    :cond_43
    if-eqz v6, :cond_45

    const-string v2, "height"

    .line 225
    invoke-virtual {v13, v2, v6}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3a
    .catch Ljava/lang/Exception; {:try_start_3a .. :try_end_3a} :catch_19
    .catchall {:try_start_3a .. :try_end_3a} :catchall_4

    goto :goto_34

    :cond_44
    :goto_2e
    move-object/from16 v5, v27

    goto :goto_34

    :catch_12
    :goto_2f
    move-object/from16 v5, v27

    goto :goto_32

    :catch_13
    move-object/from16 v5, v27

    move-object/from16 v1, v30

    move-object/from16 v0, v31

    goto :goto_30

    :catch_14
    move-object v1, v2

    move-object v0, v3

    :catch_15
    move-object/from16 v5, v27

    goto :goto_30

    :catch_16
    move-object v5, v1

    move-object v1, v2

    move-object v0, v3

    move-object/from16 v23, v8

    move-object/from16 v24, v15

    :goto_30
    const/4 v3, 0x0

    goto :goto_32

    :catch_17
    move-object v0, v3

    move-object/from16 v17, v5

    goto :goto_31

    :catch_18
    move-object v0, v3

    move-object/from16 v17, v5

    move/from16 v22, v7

    :goto_31
    move-object/from16 v23, v8

    move-object/from16 v24, v15

    const/4 v3, 0x0

    move-object v5, v1

    move-object v1, v2

    :catch_19
    :goto_32
    const/4 v2, 0x0

    .line 226
    :goto_33
    :try_start_3b
    invoke-static {v13, v4, v2}, Lcom/estrongs/fs/impl/media/c;->a(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/String;)V

    .line 227
    invoke-virtual {v13, v0, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 228
    :cond_45
    :goto_34
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v6, v24

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {v4}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    move-object/from16 v4, v17

    move-object/from16 v8, v23

    const/4 v6, 0x0

    invoke-virtual {v4, v8, v13, v2, v6}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_3b
    .catch Ljava/lang/Exception; {:try_start_3b .. :try_end_3b} :catch_1e
    .catchall {:try_start_3b .. :try_end_3b} :catchall_4

    :goto_35
    add-int/lit8 v7, v22, 0x1

    move-object/from16 v6, p1

    move-object v3, v0

    move-object v2, v1

    move-object v1, v5

    move-object/from16 v15, v18

    move-object/from16 v12, v20

    move-object/from16 v0, p0

    move-object v5, v4

    goto/16 :goto_17

    :cond_46
    move-object v4, v5

    move-object/from16 p1, v6

    move-object/from16 v20, v12

    move-object/from16 v18, v15

    const/4 v3, 0x0

    move-object v5, v1

    .line 229
    :try_start_3c
    invoke-virtual {v5}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_3c
    .catch Ljava/lang/RuntimeException; {:try_start_3c .. :try_end_3c} :catch_1a
    .catch Ljava/lang/Exception; {:try_start_3c .. :try_end_3c} :catch_1e
    .catchall {:try_start_3c .. :try_end_3c} :catchall_4

    goto :goto_36

    :catchall_4
    move-exception v0

    goto/16 :goto_3d

    .line 230
    :catch_1a
    :goto_36
    :try_start_3d
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v0

    const/16 v1, 0x1f4

    rem-int/2addr v0, v1

    if-nez v0, :cond_47

    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v0

    div-int/2addr v0, v1

    goto :goto_37

    :cond_47
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v0

    div-int/2addr v0, v1

    const/4 v2, 0x1

    add-int/2addr v0, v2

    .line 231
    :goto_37
    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    const/4 v5, -0x1

    .line 232
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v2, v8, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    const/4 v7, 0x0

    :goto_38
    if-ge v7, v0, :cond_4b

    .line 233
    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    add-int/lit8 v6, v0, -0x1

    if-ge v7, v6, :cond_48

    const/16 v8, 0x1f4

    goto :goto_39

    .line 234
    :cond_48
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v8
    :try_end_3d
    .catch Ljava/lang/Exception; {:try_start_3d .. :try_end_3d} :catch_1b
    .catchall {:try_start_3d .. :try_end_3d} :catchall_4

    mul-int/lit16 v6, v6, 0x1f4

    sub-int/2addr v8, v6

    :goto_39
    const/4 v6, 0x0

    :goto_3a
    if-ge v6, v8, :cond_4a

    mul-int/lit16 v9, v7, 0x1f4

    add-int/2addr v9, v6

    move-object/from16 v10, p0

    .line 235
    :try_start_3e
    invoke-interface {v10, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/String;

    if-nez v6, :cond_49

    .line 236
    invoke-static {v9}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v5, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-object/from16 v11, v20

    goto :goto_3b

    :cond_49
    move-object/from16 v11, v20

    .line 237
    invoke-virtual {v5, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {v9}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v5, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :goto_3b
    add-int/lit8 v6, v6, 0x1

    move-object/from16 v20, v11

    goto :goto_3a

    :cond_4a
    move-object/from16 v10, p0

    move-object/from16 v11, v20

    .line 238
    invoke-static/range {v16 .. v16}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v6

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v9, v18

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-object/from16 v5, v19

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    const/4 v12, 0x0

    invoke-virtual {v4, v6, v2, v8, v12}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_3e
    .catch Ljava/lang/Exception; {:try_start_3e .. :try_end_3e} :catch_1c
    .catchall {:try_start_3e .. :try_end_3e} :catchall_4

    add-int/lit8 v7, v7, 0x1

    move-object/from16 v19, v5

    move-object/from16 v18, v9

    move-object/from16 v20, v11

    goto :goto_38

    :catch_1b
    :cond_4b
    move-object/from16 v10, p0

    .line 239
    :catch_1c
    :try_start_3f
    sget-boolean v0, Lcom/estrongs/android/pop/j;->Z:Z

    if-eqz v0, :cond_4c

    const/4 v12, 0x0

    .line 240
    :goto_3c
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v12, v0, :cond_4c

    .line 241
    invoke-interface {v10, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/r;->c(Ljava/lang/String;)V
    :try_end_3f
    .catch Ljava/lang/Exception; {:try_start_3f .. :try_end_3f} :catch_1e
    .catchall {:try_start_3f .. :try_end_3f} :catchall_4

    add-int/lit8 v12, v12, 0x1

    goto :goto_3c

    :cond_4c
    if-eqz p1, :cond_4d

    .line 242
    invoke-interface/range {p1 .. p1}, Landroid/database/Cursor;->close()V

    goto :goto_3f

    :catchall_5
    move-exception v0

    move-object/from16 p1, v6

    :goto_3d
    move-object/from16 v4, p1

    goto :goto_40

    :catch_1d
    move-object/from16 p1, v6

    :catch_1e
    move-object/from16 v4, p1

    goto :goto_3e

    :catchall_6
    move-exception v0

    const/4 v12, 0x0

    move-object v4, v12

    goto :goto_40

    :catch_1f
    const/4 v12, 0x0

    move-object v4, v12

    .line 243
    :goto_3e
    :try_start_40
    invoke-static {}, Lcom/estrongs/android/pop/utils/r;->b()V
    :try_end_40
    .catchall {:try_start_40 .. :try_end_40} :catchall_7

    if-eqz v4, :cond_4d

    .line 244
    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    :cond_4d
    :goto_3f
    return-void

    :catchall_7
    move-exception v0

    :goto_40
    if-eqz v4, :cond_4e

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    .line 245
    :cond_4e
    goto :goto_42

    :goto_41
    throw v0

    :goto_42
    goto :goto_41
.end method

.method private static b(Landroid/media/ExifInterface;)J
    .locals 4

    const-string v0, "GPSDateStamp"

    .line 66
    invoke-virtual {p0, v0}, Landroid/media/ExifInterface;->getAttribute(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "GPSTimeStamp"

    .line 67
    invoke-virtual {p0, v1}, Landroid/media/ExifInterface;->getAttribute(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const-wide/16 v1, -0x1

    if-eqz v0, :cond_3

    if-nez p0, :cond_0

    goto :goto_0

    .line 68
    :cond_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v0, 0x20

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    if-nez p0, :cond_1

    return-wide v1

    .line 69
    :cond_1
    new-instance v0, Ljava/text/ParsePosition;

    const/4 v3, 0x0

    invoke-direct {v0, v3}, Ljava/text/ParsePosition;-><init>(I)V

    .line 70
    :try_start_0
    sget-object v3, Lcom/estrongs/fs/impl/media/d;->b:Ljava/text/SimpleDateFormat;

    invoke-virtual {v3, p0, v0}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;

    move-result-object p0

    if-nez p0, :cond_2

    return-wide v1

    .line 71
    :cond_2
    invoke-virtual {p0}, Ljava/util/Date;->getTime()J

    move-result-wide v0
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    return-wide v0

    :catch_0
    :cond_3
    :goto_0
    return-wide v1
.end method

.method public static b(Ljava/util/List;)V
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    const-string v0, "/"

    .line 1
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v1

    if-nez v1, :cond_0

    return-void

    :cond_0
    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 2
    :goto_0
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v3

    if-ge v2, v3, :cond_3

    .line 3
    new-instance v3, Ljava/io/File;

    invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/utils/r;->a()Z

    move-result p0

    if-nez p0, :cond_1

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/utils/r;->b()V

    :cond_1
    return-void

    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_3
    const/16 v2, 0x64

    .line 6
    :try_start_0
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v3

    rem-int/2addr v3, v2

    if-nez v3, :cond_4

    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v3

    div-int/2addr v3, v2

    goto :goto_1

    :cond_4
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v3

    div-int/2addr v3, v2

    add-int/lit8 v3, v3, 0x1

    :goto_1
    const/4 v4, 0x0

    :goto_2
    if-ge v4, v3, :cond_9

    .line 7
    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    add-int/lit8 v6, v3, -0x1

    if-ge v4, v6, :cond_5

    const/16 v7, 0x64

    goto :goto_3

    .line 8
    :cond_5
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v7

    mul-int v6, v6, v2

    sub-int/2addr v7, v6

    :goto_3
    const/4 v6, 0x0

    :goto_4
    if-ge v6, v7, :cond_8

    mul-int/lit8 v8, v4, 0x64

    add-int/2addr v8, v6

    .line 9
    invoke-interface {p0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    invoke-static {v8}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 10
    invoke-virtual {v8, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_6

    .line 11
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_6
    const-string v9, "%"

    const-string v10, "_data like "

    const-string v11, " or "

    if-nez v6, :cond_7

    .line 12
    :try_start_1
    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v12, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v5, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_5

    .line 13
    :cond_7
    invoke-virtual {v5, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v12, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v5, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 14
    :goto_5
    invoke-virtual {v5, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "_data = "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v10

    add-int/lit8 v10, v10, -0x1

    invoke-virtual {v8, v1, v10}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v8, " and format="

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v8, 0x3001

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v5, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v6, v6, 0x1

    goto/16 :goto_4

    .line 15
    :cond_8
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v6

    invoke-virtual {v6}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v6

    const-string v7, "external"

    .line 16
    invoke-static {v7}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v7

    .line 17
    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v8, 0x0

    .line 18
    invoke-virtual {v6, v7, v5, v8}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_2

    :catch_0
    move-exception p0

    .line 19
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_9
    return-void
.end method

.method public static e(Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/media/MediaStoreInsertException;
        }
    .end annotation

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const-string v0, "/"

    .line 2
    invoke-virtual {p0, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {p0, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p0

    .line 4
    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 5
    new-instance v1, Ljava/util/HashSet;

    invoke-direct {v1}, Ljava/util/HashSet;-><init>()V

    .line 6
    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 7
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-interface {v1, p0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 8
    invoke-static {v0, v1}, Lcom/estrongs/fs/impl/media/d;->a(Ljava/util/List;Ljava/util/Set;)V

    return-void
.end method

.method public static f(Ljava/lang/String;)I
    .locals 3

    .line 1
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "_data="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v1, "external"

    .line 4
    invoke-static {v1}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p0, v2}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :catch_0
    move-exception p0

    .line 5
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 p0, 0x0

    return p0
.end method

.method public static g(Ljava/lang/String;)V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 3
    invoke-static {v0}, Lcom/estrongs/fs/impl/media/d;->b(Ljava/util/List;)V

    return-void
.end method


# virtual methods
.method protected abstract a(Lcom/estrongs/fs/impl/local/d;)Lcom/estrongs/fs/g;
.end method

.method public a(Ljava/lang/String;)Lcom/estrongs/fs/g;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Ljava/lang/String;Lcom/estrongs/android/util/TypedMap;)Ljava/io/OutputStream;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Ljava/lang/String;Z)Ljava/io/OutputStream;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 p1, 0x0

    return-object p1
.end method

.method protected abstract a()Ljava/lang/String;
.end method

.method public a(Lcom/estrongs/fs/g;Lcom/estrongs/fs/h;Lcom/estrongs/android/util/TypedMap;)Ljava/util/List;
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/fs/g;",
            "Lcom/estrongs/fs/h;",
            "Lcom/estrongs/android/util/TypedMap;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 264
    invoke-super {p0, p1, p2, p3}, Lcom/estrongs/fs/impl/media/a;->a(Lcom/estrongs/fs/g;Lcom/estrongs/fs/h;Lcom/estrongs/android/util/TypedMap;)Ljava/util/List;

    move-result-object p1

    return-object p1
.end method

.method public b(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 p1, 0x0

    return-object p1
.end method

.method public b(Lcom/estrongs/fs/g;Lcom/estrongs/fs/h;Lcom/estrongs/android/util/TypedMap;)Ljava/util/List;
    .locals 19
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/fs/g;",
            "Lcom/estrongs/fs/h;",
            "Lcom/estrongs/android/util/TypedMap;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    move-object/from16 v2, p2

    .line 20
    invoke-static/range {p3 .. p3}, Lcom/estrongs/android/pop/utils/r;->a(Lcom/estrongs/android/util/TypedMap;)Z

    move-result v3

    const/4 v4, 0x0

    if-nez v3, :cond_0

    return-object v4

    .line 21
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/utils/n;->d()[Lcom/estrongs/android/pop/utils/n$g;

    move-result-object v3

    .line 22
    invoke-static {v3}, Lcom/estrongs/android/pop/utils/n;->a([Lcom/estrongs/android/pop/utils/n$g;)[Ljava/lang/String;

    move-result-object v5

    .line 23
    new-instance v6, Les/eu$a;

    const/4 v7, 0x0

    invoke-direct {v6, v7}, Les/eu$a;-><init>(Z)V

    .line 24
    array-length v8, v3

    const/16 v9, 0x1f4

    if-le v8, v9, :cond_1

    .line 25
    new-instance v8, Lcom/estrongs/fs/impl/media/d$c;

    invoke-direct {v8, v1, v3, v5}, Lcom/estrongs/fs/impl/media/d$c;-><init>(Lcom/estrongs/fs/impl/media/d;[Lcom/estrongs/android/pop/utils/n$g;[Ljava/lang/String;)V

    invoke-virtual {v6, v8}, Les/eu$a;->a(Lcom/estrongs/fs/h;)V

    .line 26
    :cond_1
    invoke-static {}, Lcom/estrongs/android/util/h0;->p()Lcom/estrongs/fs/h;

    move-result-object v8

    invoke-virtual {v6, v8}, Les/eu$a;->a(Lcom/estrongs/fs/h;)V

    if-eqz v2, :cond_2

    .line 27
    invoke-virtual {v6, v2}, Les/eu$a;->a(Lcom/estrongs/fs/h;)V

    .line 28
    :cond_2
    array-length v2, v3

    const-string v8, " not like "

    const/4 v10, 0x1

    const-string v11, " and "

    const-string v12, "_data"

    if-lez v2, :cond_8

    array-length v2, v3

    if-gt v2, v9, :cond_8

    .line 29
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    const/4 v9, 0x0

    .line 30
    :goto_0
    array-length v13, v3

    if-ge v9, v13, :cond_7

    .line 31
    aget-object v13, v3, v9

    iget-boolean v13, v13, Lcom/estrongs/android/pop/utils/n$g;->a:Z

    const-string v14, "!="

    if-eqz v13, :cond_5

    .line 32
    aget-object v13, v5, v9

    const-string v15, "/"

    .line 33
    invoke-virtual {v13, v15}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v15

    if-eqz v15, :cond_3

    .line 34
    invoke-virtual {v13}, Ljava/lang/String;->length()I

    move-result v15

    sub-int/2addr v15, v10

    invoke-virtual {v13, v7, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v13

    .line 35
    :cond_3
    invoke-virtual {v2}, Ljava/lang/StringBuffer;->length()I

    move-result v15

    if-lez v15, :cond_4

    .line 36
    invoke-virtual {v2, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 37
    :cond_4
    invoke-virtual {v2, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v2, v14}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {v13}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v2, v14}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 38
    invoke-virtual {v2, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v2, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v2, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v14, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v13, "/%"

    invoke-virtual {v14, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v2, v13}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_1

    .line 39
    :cond_5
    invoke-virtual {v2}, Ljava/lang/StringBuffer;->length()I

    move-result v13

    if-lez v13, :cond_6

    .line 40
    invoke-virtual {v2, v11}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 41
    :cond_6
    invoke-virtual {v2, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v2, v14}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    aget-object v13, v5, v9

    invoke-static {v13}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v2, v13}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :goto_1
    add-int/lit8 v9, v9, 0x1

    goto :goto_0

    .line 42
    :cond_7
    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_2

    :cond_8
    move-object v2, v4

    :goto_2
    const-string v3, "external"

    .line 43
    invoke-static {v3}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v14

    const/4 v3, 0x2

    new-array v15, v3, [Ljava/lang/String;

    aput-object v12, v15, v7

    const-string v3, "date_modified"

    aput-object v3, v15, v10

    .line 44
    new-instance v3, Ljava/util/LinkedList;

    invoke-direct {v3}, Ljava/util/LinkedList;-><init>()V

    .line 45
    invoke-virtual/range {p0 .. p0}, Lcom/estrongs/fs/impl/media/d;->a()Ljava/lang/String;

    move-result-object v5

    if-nez v5, :cond_9

    return-object v3

    :cond_9
    const-string v9, "("

    if-nez v2, :cond_a

    .line 46
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, ")"

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_3

    :cond_a
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, ") and "

    invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 47
    :goto_3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v5

    invoke-virtual {v5}, Lcom/estrongs/android/pop/l;->k1()Z

    move-result v5

    if-eqz v0, :cond_b

    .line 48
    instance-of v9, v0, Lcom/estrongs/android/pop/app/finder/data/d;

    if-eqz v9, :cond_b

    .line 49
    check-cast v0, Lcom/estrongs/android/pop/app/finder/data/d;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/finder/data/d;->n()Z

    move-result v5

    :cond_b
    if-nez v5, :cond_c

    .line 50
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "%/.%"

    invoke-static {v2}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    move-object/from16 v16, v0

    goto :goto_4

    :cond_c
    move-object/from16 v16, v2

    .line 51
    :goto_4
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v13

    const/16 v17, 0x0

    const/16 v18, 0x0

    invoke-virtual/range {v13 .. v18}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v2, :cond_e

    if-eqz v2, :cond_d

    .line 52
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    :cond_d
    return-object v3

    .line 53
    :cond_e
    :try_start_1
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v0

    .line 54
    :cond_f
    :goto_5
    invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z

    move-result v5

    if-eqz v5, :cond_14

    if-eqz v0, :cond_11

    .line 55
    invoke-virtual {v0}, Les/s80;->z()Z

    move-result v5
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v5, :cond_11

    if-eqz v2, :cond_10

    .line 56
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    :cond_10
    return-object v4

    .line 57
    :cond_11
    :try_start_2
    invoke-interface {v2, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 58
    new-instance v8, Ljava/io/File;

    invoke-direct {v8, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 59
    invoke-virtual {v8}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-nez v5, :cond_f

    invoke-virtual {v8}, Ljava/io/File;->exists()Z

    move-result v5

    if-nez v5, :cond_12

    goto :goto_5

    .line 60
    :cond_12
    new-instance v5, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {v5, v8}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    .line 61
    invoke-virtual {v6, v5}, Les/eu$a;->a(Lcom/estrongs/fs/g;)Z

    move-result v8

    if-nez v8, :cond_13

    goto :goto_5

    .line 62
    :cond_13
    invoke-virtual {v1, v5}, Lcom/estrongs/fs/impl/media/d;->a(Lcom/estrongs/fs/impl/local/d;)Lcom/estrongs/fs/g;

    move-result-object v5

    .line 63
    invoke-virtual {v3, v5}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_5

    :cond_14
    if-eqz v2, :cond_15

    .line 64
    invoke-interface {v2}, Landroid/database/Cursor;->close()V

    :cond_15
    return-object v3

    :catchall_0
    move-exception v0

    move-object v4, v2

    goto :goto_6

    :catchall_1
    move-exception v0

    :goto_6
    if-eqz v4, :cond_16

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    .line 65
    :cond_16
    goto :goto_8

    :goto_7
    throw v0

    :goto_8
    goto :goto_7
.end method

.method public c(Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 p1, 0x0

    return p1
.end method

.method public d(Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 p1, 0x0

    return p1
.end method
